package com.streamax.s17.mqs.business;

import com.streamax.s17.mqs.business.config.KafkaConfig;
import com.streamax.s17.mqs.business.config.InfluxDBConfig;
import com.streamax.s17.mqs.business.config.SystemConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Package com.demo.one.business
 * Company streamax.com
 * Project demo-one
 * Description
 * Created on 2018-12-24 23:12
 *
 * @author Mitol
 * @version 1.0.0
 */
//@MapperScan FIXME 设置mapper的扫描路径
//@EnableFeignClients(basePackageClasses = {DemoTwoService.class})
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableConfigurationProperties({KafkaConfig.class, InfluxDBConfig.class, SystemConfig.class})
@ComponentScan(value = "com.streamax.s17.mqs")
@EnableSwagger2
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}